package com.zrrd.jt_admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wanjl
 * @since 2024-07-11
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="OrderItem对象", description="")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    protected Integer id;

    @ApiModelProperty(value = "订单id")
    protected Integer orderId;

    @ApiModelProperty(value = "商品id/商品规则id")
    protected Integer shopId;

    @ApiModelProperty(value = "购买数量")
    protected Integer num;

    @ApiModelProperty(value = "购买价格")
    protected BigDecimal price;

    @ApiModelProperty(value = "评分")
    protected Integer rating;

    @ApiModelProperty(value = "评价")
    protected String review;

    @ApiModelProperty(value = "评价时间")
    protected Integer reviewTime;

    protected Integer createTime;

    @ApiModelProperty(value = "规格类型")
    protected Integer skusType;

    protected Integer goodsId;

    protected Integer goodsNum;

    protected Integer userId;

    @ApiModelProperty(value = "客服回复评论")
    protected String extra;

    @ApiModelProperty(value = "是否可用,1：可用，0不可用")
    protected Boolean status;


}
